home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / xc2102.lzh / INCLUDE / ASSERT.H next >
Text File  |  1992-03-03  |  323b  |  18 lines

  1. /*
  2.  * assert.h X68k XC Compiler v2.10 Copyright 1990,91,92 SHARP/Hudson
  3.  */
  4. #ifndef    __ASSERT_H
  5. #define __ASSERT_H
  6.  
  7. #ifndef    NDEBUG
  8.  
  9. #define    assert(EXP)    ((void)((EXP)?0:(fprintf(stderr,"Assertion failed: %s, file %s, line %d\n",#EXP,__FILE__,__LINE__),abort())))
  10.  
  11. #else
  12.  
  13. #define    assert(exp)
  14.  
  15. #endif
  16.  
  17. #endif
  18.